export enum SecsProtocol {
    Secs1 = 0,
    HSMS = 1
}

export enum HSMSMode {
    Active = 0,
    Passive = 1,
}

export enum Secs1Mode {
    TCP_IP = 1,
    COM = 2
}

export enum Secs1Role {
    Host = 0,
    Eqp = 1
}

export enum BaudRate {
    Auto = 0,
    Fixed_1200 = 1200,
    Fixed_2400 = 2400,
    Fixed_4800 = 4800,
    Fixed_9600 = 9600,
    Fixed_19200 = 19200,
}

export enum IconStaus {
    Success = 0,
    Warning = 1,
    Error = 2,
}

// export enum SecsFormat {
//     List = 0,
//     Binary = 8,
//     Boolean = 9,
//     AscII = 16,
//     Jis8 = 17,
//     I8 = 24,
//     I1 = 25,
//     I2 = 26,
//     I4 = 30,
//     F8 = 32,
//     F4 = 36,
//     U8 = 40,
//     U1 = 41,
//     U2 = 42,
//     U4 = 44,
//     Unknow = 63,
// }

export enum SecsFormat {
    List = "List",
    Binary = "Binary",
    Boolean = "Boolean",
    AscII = "AscII",
    Jis8 = "Jis8",
    I8 = "I8",
    I1 = "I1",
    I2 = "I2",
    I4 = "I4",
    F8 = "F8",
    F4 = "F4",
    U8 = "U8",
    U1 = "U1",
    U2 = "U2",
    U4 = "U4",
    Unknow = "Unknow",
}


export enum MessageTreeDataType {
    Transaction = 0,
    Primary = 1,
    Secondary = 2,
    RootValue = 3,
    Value = 4,
}


export enum DialogResult {
    Ok = 0,
    Confirm = 1,
    Cancel = 2,
    CloseWindow = 3,
    Unknow = 4,
}

export enum ConnectionStatus {
    Initial = 0,
    Connecting = 1,
    Connected = 2,
    Selected = 3,
    Deselected = 4,
    Reconnecting = 5,
    Disconnected = 6,
    Shutdown = 7,
}

export enum LogLevel {
    Trace = 0,
    Debug = 1,
    Info = 2,
    Warn = 3,
    Error = 4,
}

export enum PreferenceScope {
    Global = 0,
    Connection = 1
}

export enum SyncTransactionAction {
    Update = 0,
    InsertBefore = 1,
    InsertAfter = 2,
    Append = 3,
}